package com.gitee.service;

import com.gitee.dto.AddMemberDTO;
import com.gitee.dto.GroupDTO;
import com.gitee.dto.SaveGroupChatDTO;
import com.gitee.entity.Group;
import com.gitee.vo.GroupChatVO;
import com.gitee.vo.GroupVO;

import java.util.List;

public interface GroupService {
    void createGroup(GroupDTO groupDTO);

    void addMember(AddMemberDTO addMemberDTO);

    void removeMember(AddMemberDTO addMemberDTO);

    void deleteGroup(Integer groupId);

    void editGroup(Group group);

    void leaveGroup(Integer groupId);

    GroupVO getGroupInfo(Integer id);

    void saveGroupChat(SaveGroupChatDTO saveGroupChatDTO);

    List<GroupChatVO> getGroupChat(Integer groupId);

    List<Group> getUserJoinGroup(Integer userId);
}
